class ClassScreens{
  int? _code;
  List<ClassScreen>? _data;
  String? _message;

  ClassScreens({int? code,List<ClassScreen>? data,String? message}) {
    this._code = code;
    this._data = data;
    this._message = message;
  }

  int? get code => _code;
  set setCode(int code)=>_code = code;
  String? get message => _message;
  set setMessage(String message) => _message = message;
  List<ClassScreen>? get data =>_data;
  set getData(List<ClassScreen> data) => _data = data;

  ClassScreens.fromJson(Map<String, dynamic> json) {
    if(json['data'] != null){
      _data = [];
      json['data'].forEach((e)=>{
        _data!.add(ClassScreen.fromJson(e))
      });
    }
  }

  Map<String,dynamic> toJson(){
    final Map<String,dynamic> data = new Map<String,dynamic>();
    data['code'] = this._code;
    data['message'] = this._message;
    if(data['data'] !=null){
      data['data'] = this._data!.map((v) => v.toJson()).toList();
    }

    return data;
  }

}

class ClassScreen{

  int? _id;
  String? _name;

  ClassScreen({int? id, String? name, int? page}) {
    this._id = id;
    this._name = name;
  }

  int? get id => _id;
  set setId(int id) => _id = id;
  String? get name => _name;
  set setName(String name) => _name = name;


  ClassScreen.fromJson(Map<String, dynamic> json) {
    _id = json['id'];
    _name = json['name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this._id;
    data['name'] = this._name;
    return data;
  }

}